package my.study.designpattern.templatemethod.examples.example1;

import my.study.designpattern.templatemethod.MyApplicationContext;

public class Main {
	public static void main(String[] args) {
		CaffeineBeverage coffee = MyApplicationContext.getBean(CaffeineBeverage.class, "coffee");
		coffee.prepareRecipe();
		
		CaffeineBeverage tea = MyApplicationContext.getBean(CaffeineBeverage.class, "tea");
		tea.prepareRecipe();
		
		CaffeineBeverageWithHook coffeeWithHook = MyApplicationContext.getBean(CaffeineBeverageWithHook.class, "coffeeWithHook");
		coffeeWithHook.prepareRecipe();
		
		CaffeineBeverageWithHook teaWithHook = MyApplicationContext.getBean(CaffeineBeverageWithHook.class, "teaWithHook");
		teaWithHook.prepareRecipe();
	}
}
